package com.yupi.yuojbackendgateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

//由于mybatis-plus的依赖引入会连接数据库 所以需要在启动的时候排除掉这个依赖去连接数据库所以直接把依赖去掉
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableDiscoveryClient
//网关服务不涉及微服务之间的内部调用所以不加 @EnableDiscoveryClient
//@EnableFeignClients(basePackages = {"com.yupi.yuojbackendserviceclient.service"})
public class YuojBackendGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(YuojBackendGatewayApplication.class, args);
    }

}
